﻿using System;
using System.Collections.Generic;
using System.Text;
using SaiLing.Domain.Persistence.Relational;

namespace SaiLing.SingleSignOn.Domain.Entities.System
{
    public class ModuleAction:IEntity
    {
        public Guid ModuleId { get; set; }

        public string Name { get; set; }

        public string Url { get; set; }

        public int Sort { get; set; }
    }

    public class ModuleActionEqualityComparer : IEqualityComparer<ModuleAction>
    {
        bool IEqualityComparer<ModuleAction>.Equals(ModuleAction x, ModuleAction y)
        {
            return x.Id == y.Id;
        }

        int IEqualityComparer<ModuleAction>.GetHashCode(ModuleAction obj)
        {
            return obj.Id.GetHashCode();
        }
    }
}
